package com.fjrcloud.dao;

import com.fjrcloud.entity.HouseholdMaster;
import com.fjrcloud.entity.IdentifiedHousing;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by shengjian.lin on 2017/1/21.
 */
public interface IdentifiedHousingDao extends BaseDao<IdentifiedHousing,Integer> {
    Page<IdentifiedHousing> findByValidAndMasterOrderByLayerAsc(boolean valid, HouseholdMaster master, Pageable pageable);
    IdentifiedHousing findByValidAndMasterAndLayer(boolean valid, HouseholdMaster master, Integer layer);

}
